<?php
namespace app\admin\validate;
use think\Validate;

/**
 * 栏目列表
 * User: Administrator
 * Date: 2017/10/28
 * Time: 14:03
 */
class Cata extends Validate
{
    protected $rule = [
        'cataname' => 'require|max:15|unique:cata',
    ];
    protected $message = [
        'cataname.require' => '栏目名称必须填',
        'cataname.max' => '栏目名称最多不能超过15个字符',
        'cataname.unique' => '栏目名称不得重复',
    ];
}